Skip to content

chore: use @metamask/messenger CLI for action type generation#577

Closed
cryptodev-2s wants to merge 8 commits intomainfrom
chore/use-messenger-generate-action-types-cli
Closed

chore: use @metamask/messenger CLI for action type generation#577
cryptodev-2s wants to merge 8 commits intomainfrom
chore/use-messenger-generate-action-types-cli

Conversation

@cryptodev-2s
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s commented Apr 1, 2026

Explanation

Replace the local scripts/generate-method-action-types.ts (755 lines) with the messenger-generate-action-types CLI shipped in @metamask/messenger@^1.1.0.

  • Delete duplicated script
  • Remove tsx devDependency (no longer needed)
  • Regenerate action types file (header comment change only)

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed

Note

Medium Risk
Moderate risk because it upgrades @metamask/messenger to ^1.1.0 and changes the action-type generation workflow, which could affect build/lint pipelines and generated type compatibility for consumers.

Overview
Switches method action-type generation from the repo’s custom scripts/generate-method-action-types.ts to the upstream messenger-generate-action-types CLI, deleting the local script and updating the generate-method-action-types package script accordingly.

Updates dependencies to support this workflow by bumping @metamask/messenger to ^1.1.0 and removing the tsx devDependency (and related lockfile/LavaMoat entries). Regenerates SmartTransactionsController method action types with the new generator (header comment change only) and documents the messenger bump in CHANGELOG.md.

Written by Cursor Bugbot for commit 3b30bff. This will update automatically on new commits. Configure here.

- Delete local scripts/generate-method-action-types.ts (755 lines)
- Bump @metamask/messenger from ^0.3.0 to ^1.1.0
- Remove tsx devDependency (no longer needed)
- Update generate script to use messenger-generate-action-types CLI
@cryptodev-2s cryptodev-2s marked this pull request as ready for review April 1, 2026 20:59
@cryptodev-2s cryptodev-2s requested a review from a team as a code owner April 1, 2026 20:59
@cryptodev-2s cryptodev-2s self-assigned this Apr 1, 2026
@cryptodev-2s cryptodev-2s enabled auto-merge (squash) April 1, 2026 21:32
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

auto-merge was automatically disabled April 4, 2026 10:00

Pull request was closed

@cryptodev-2s
Copy link
Copy Markdown
Contributor Author

replaced by #579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants